import request from '../utils/request'

export const listPages = (pages,size) => {
	return request({
		url: "/article/page",
		method: 'get',
		params: {
			pages,
			size
		}
	})
}

//根据类别查询帖子
export function findByType (pages,size,menuId) {
	return request({
		url: "/article/findByType",
		method: 'get',
		params: { pages,size,menuId }
	})
}

//根据id查询帖子
export function findById (id) {
	return request({
		url: "/article/findById",
		method: 'get',
		params: { id }
	})
}

